package com.gss.armory.domain;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;


import com.gss.common.domain.CommonDetailsDTO;

@Entity
@Table(name="DOC_ATT_DTLS")
public class DocAttDTO extends CommonDetailsDTO implements IDocument{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


		private Long att_id;
		private Long doc_id;

		private byte[] attachEncrypted;
		private byte[] attach;
	
		
		private String att_orig_filename,att_content_type;
	
		
		@Id @GeneratedValue(strategy=GenerationType.AUTO)
		@Column(name="DOC_ATT_ID")
		public Long getAtt_id() {
			return att_id;
		}
		public void setAtt_id(Long attId) {
			att_id = attId;
		}
		
		
		@Column(name="DOC_ATT",columnDefinition="blob (20485760)")
		public byte[] getAttach() {
			return attach;
		}
		public void setAttach(byte[] attach) {
			this.attach = attach;
		}
		@Column(name="DOC_ATT_FILE_NAME")
		public String getAtt_orig_filename() {
			return att_orig_filename;
		}
		@Column(name="DOC_ATT_CONTENT_TYPE")
		public String getAtt_content_type() {
			return att_content_type;
		}
		


		public void setAtt_orig_filename(String attOrigFilename) {
			att_orig_filename = attOrigFilename;
		}

		public void setAtt_content_type(String attContentType) {
			att_content_type = attContentType;
		}
		
		@Column(name="DOC_ID")
		public Long getDoc_id() {
			return doc_id;
		}
		public void setDoc_id(Long docId) {
			doc_id = docId;
		}
		@Transient
		public byte[] getAttachEncrypted() {
			return attachEncrypted;
		}
		public void setAttachEncrypted(byte[] attachEncrypted) {
			this.attachEncrypted = attachEncrypted;
		}
		



		
		
		
		

	


}
